package com.sa.token.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sa.token.dto.request.menu.*;
import com.sa.token.entity.SysMenuEntity;
import com.sa.token.message.StandardResponse;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 * 权限表 服务类
 * </p>
 *
 * @author xhs
 * @since 2021-08-27
 */
public interface SysMenuService extends IService<SysMenuEntity> {

    /**
     * 新增菜单
     *
     * @param request
     * @param menu
     * @return
     */
    StandardResponse<Object> insertMenu(HttpServletRequest request, InsertMenuRequest menu);

    /**
     * 编辑菜单接口
     *
     * @param request
     * @param menuRequest
     * @return
     */
    StandardResponse<Object> updatetMenu(HttpServletRequest request, UpdatetMenuRequest menuRequest);

    /**
     * 查询菜单
     *
     * @param menuRequest
     * @return
     */
    StandardResponse<Object> selectMenu(SelectMenuRequest menuRequest);

    /**
     * 根据Id查询菜单数据
     *
     * @param menuRequest
     * @return
     */
    StandardResponse<Object> selectMenuById(SelectMenuByIdRequest menuRequest);

    /**
     * 删除菜单
     *
     * @param menuRequest
     * @return
     */
    StandardResponse<Object> del(DelMenuRequest menuRequest);


}
